import request from '@/utils/request'

// 分页查询企业证书
export function getAssociationCertificatePage(params) {
	return request({
		url: '/associationCertificate/getPage/noAuth',
		method: 'get',
		params: params
	})
}

// 通过key查询企业证书
export function getAssociationCertificateByKey(params) {
	return request({
		url: '/associationCertificate/getByKey/noAuth',
		method: 'get',
		params: params
	})
}

// 新增企业证书
export function addAssociationCertificate(data) {
	return request({
		url: '/associationCertificate/add',
		method: 'post',
		data: data
	})
}

// 修改企业证书
export function editAssociationCertificate(data) {
	return request({
		url: '/associationCertificate/upd',
		method: 'post',
		data: data
	})
}

// 删除企业证书
export function delAssociationCertificate(data) {
	return request({
		url: '/associationCertificate/del',
		method: 'post',
		data: data
	})
}
